package com.yhd.service;

import com.yhd.entity.dto.SystemDictionaryDto;
import com.yhd.entity.dto.UserDto;
import com.yhd.entity.query.SystemDictionaryVO;
import com.yhd.model.ResultPage;

import java.util.List;

public interface SysDictService {

    /**
     * 新增字典
     * @param systemDictionaryVO
     * @param userInfo
     * @return
     */
    SystemDictionaryDto addSysDict(SystemDictionaryVO systemDictionaryVO, UserDto userInfo);

    /**
     * 修改字典
     * @param systemDictionaryVO
     * @param userInfo
     * @return
     */
    SystemDictionaryDto updateSysDict(SystemDictionaryVO systemDictionaryVO, UserDto userInfo);

    /**
     * 删除字典
     * @param systemDictionaryVO
     * @param userInfo
     * @return
     */
    SystemDictionaryDto deleteSysDict(SystemDictionaryVO systemDictionaryVO, UserDto userInfo);


    ResultPage<List<SystemDictionaryDto>> selectSysDictList(SystemDictionaryVO systemDictionaryVO);

    /**
     * 获取字典详情
     * @param systemDictionaryVO
     * @return
     */
    SystemDictionaryDto selectSysDictInfo(SystemDictionaryVO systemDictionaryVO);
    
    SystemDictionaryDto selectSysDictInfoByGroupId(SystemDictionaryVO systemDictionaryVO);

    /**
     * 获取全部分类
     * @param systemDictionaryVO
     * @return
     */
    List<SystemDictionaryDto> selectAllClassifyList(SystemDictionaryVO systemDictionaryVO);

}
